# -*- coding: utf-8 -*-

from django.db import models

# Create your models here.

class CorpInfo(models.Model):
    dwbm = models.CharField(max_length=4,primary_key=True) 
    dwmc = models.CharField(max_length=30) 
    dwxz = models.CharField(max_length=20)
    zjqd = models.CharField(max_length=20)
    group = models.CharField(max_length=20)
    bh = models.CharField(max_length=10)
	
    flag_yl = models.BooleanField() #养老参保标志
    flag_gs = models.BooleanField()
    flag_sy = models.BooleanField()
    flag_nj = models.BooleanField()
    flag_yb = models.BooleanField()
	
    corp_salary_yl = models.DecimalField(max_digits=20,decimal_places=2)
    corp_salary_nj = models.DecimalField(max_digits=20,decimal_places=2)
	

    def __str__(self):
        strings = self.dwbm+" , "+self.dwmc
        return strings


    
